package com.androidx.p013lv.base;

import androidx.multidex.MultiDexApplication;
import com.alibaba.android.arouter.launcher.ARouter;
import com.androidx.p013lv.base.p014db.DaoMaster;
import com.androidx.p013lv.base.p014db.DaoSession;
import com.androidx.p013lv.base.utils.UiUtils;


/* renamed from: com.androidx.lv.base.BaseApp */
public class BaseApp extends MultiDexApplication {
    public static String clipData = null;
    private static DaoSession daoSession = null;
    public static int flag = -1;

    public void onCreate() {
        super.onCreate();
        BaseSdk.init(this);
        ARouter.openDebug();
        ARouter.init(this);
        initDataBase();
        clipData = UiUtils.getClipData();
    }

    public void onTerminate() {
        super.onTerminate();
        ARouter.getInstance().destroy();
    }

    private void initDataBase() {
        daoSession = new DaoMaster(new DaoMaster.DevOpenHelper(this, "lv-db").getWritableDb()).newSession();
    }

    public static DaoSession getDaoSession() {
        return daoSession;
    }
}
